package com.itheima.springboottilasmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.springboottilasmanager.pojo.domain.Clazz;
import com.itheima.springboottilasmanager.pojo.domain.Student;
import com.itheima.springboottilasmanager.pojo.vo.queryString;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ClazzMapper extends BaseMapper<Clazz> {


int addClazz(Clazz clazz);
int deleteClazz(Integer id);
int updateClazz(Clazz list);
Clazz selectById(Integer id);
@Select("select * from clazz")
  List<Clazz> selectAll();
@Select("select * from student where clazz_id = #{id}")

  List<Student> ListbyId(Integer id);
}
